//
//  HHLaderInPagesViewController.h
//  YSJ
//
//  Created by 花花 on 2016/12/15.
//  Copyright © 2016年 花花. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HHLaderPagesCell.h"
@interface HHLaderInPagesViewController : UIViewController


typedef void(^setupCellHandler)(HHLaderPagesCell *cell, NSIndexPath *indexpath);
//最后的点击按钮
typedef void(^finishbtnOnClick)(UIButton *finishbtn);
//collectionView
@property(nonatomic, strong,readonly) UICollectionView *collectionView;

//pageControl
@property(nonatomic, strong,readonly) UIPageControl *pageControl;

//共多少页
@property (nonatomic, assign,readonly)   NSInteger count;


/**
 初始化方法

 @param count 总数量
 @param setupCellHandler cell的点击事件
 @param finishbtnOnClick 最后一页的点击事件
 @return self
 */
- (instancetype)initWithPagesCount:(NSInteger)count setupCellHandler:(setupCellHandler)setupCellHandler finishOnClick:(finishbtnOnClick)finishbtnOnClick;
@end
